package maincode;
public class currencyStream {
	private int cuv_id;
	private String name;
	private double[] values;
	private double[] rateValues;
	public static currencyStream[] curSet=new currencyStream[6];
	public static int number=0;
	
	public currencyStream(int id, String name, double[] values, double[] rateValues)
	{
		this.cuv_id=id;
		this.name=name;
		this.values=values;
		this.rateValues=rateValues;
		number++;
//		System.out.println("contruct "+number);
	}
	
	public static int getNumber()
	{
		return number;
	}
	
	public static currencyStream getCurSet(int id)
	{
		return curSet[id];
	}
	
	public static void setCurSet(currencyStream element,int id)
	{
		curSet[id]=element;
	}
		
	public int getId(){
		return cuv_id;
	}
	
	public String getName(){
		return name;
	}
	
	public double[] getValues(){
		return values;
	}
	
	public double[] getRateValues(){
		return rateValues;
	}
	
	public double getSingleValue(int d){
		return values[d];
	}
}
